package com.xiaoxin.experience.service.tree.model;

import com.xiaoxin.experience.service.tree.common.JsTree;
import lombok.Getter;
import lombok.Setter;

/**
 * @author xiaoxin
 */
@Setter
@Getter
public class ApiDirectory {

    private String id;

    private String name;

    private String parentId;

    private String parents;

    public ApiDirectory() { }

    public ApiDirectory(String id, String name, String parentId, String parents)
    {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.parents = parents;
    }

    public JsTree toTreeNode()
    {
        return JsTree.asBranch(id,name,this);
    }
}
